package com.aqiang.user_content.model.service;

import com.aqiang.net.RetrofitManager;
import com.aqiang.net.entity.BaseEntity;
import com.aqiang.user_content.api.Api;
import com.aqiang.user_content.contract.RegisterContract;
import com.aqiang.user_content.entity.User2Entity;
import com.aqiang.user_content.entity.UserEntity;

import io.reactivex.Observable;

public class RegisterService implements RegisterContract.RegisterModel {
    @Override
    public Observable<UserEntity> requestRegister(UserEntity userEntity) {
        return RetrofitManager.getInstance().create(Api.class).register(userEntity);
    }

    @Override
    public Observable<BaseEntity<User2Entity>> request2Register(User2Entity user2Entityy) {
        return RetrofitManager.getInstance().create(Api.class).register2(user2Entityy);
    }
}
